package br.unicentro.lynx.model.factory;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {
	public static final String URL = "jdbc:derby:database";
	public static final String USER = "lynx";
	public static final String PASSWORD = "admin";	
	
	public static Connection getConnection(String url, String user, String password) {
		try {
			return DriverManager.getConnection(url, user, password);
		} catch (SQLException e) {		
			throw new RuntimeException(e);
		} 
	}
}